//
//  UserLogin.h
//  cocoapodText
//
//  Created by apple on 16/9/19.
//  Copyright © 2016年 apple. All rights reserved.
//

#ifndef UserLogin_h
#define UserLogin_h


#endif /* UserLogin_h */
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "CommonTool.h"
@class UserLogin;
//一个协议可以扩展另一个协议，例如FSLoginViewDelegate扩展了NSObject协议
@protocol ApiUserLoginDelegate <NSObject>

@required //@required修饰的方法必须实现
-(void)onLogin:(UserLogin *)manager result:(NSDictionary *)result;
-(void)onLogout:(UserLogin *)manager result:(NSDictionary *)result;

@end

@interface UserLogin : NSObject
#pragma mark - 属性
#pragma mark 代理属性，同时约定作为代理的对象必须实现KCButtonDelegate协议
@property (nonatomic,retain) id<ApiUserLoginDelegate> delegate;

#pragma mark - 公共方法
- (void)fsgy_api_user_login_withName:(NSString *)username Pass:(NSString *)password;
- (void)fsgy_api_user_logout_withName:(NSString *)username Pass:(NSString *)password;

@end
